package com.bjx.flow.domain.bo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.Range;
import com.bjx.common.core.domain.group.Update;
import java.util.Date;

/**
 * @desc: 流程分组BO实体
 * @author: liushuai
 * @date: 2022/10/24
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(title = "FlowGroupBO",description = "流程分组BO实体")
public class FlowGroupBO  {
        /**
        * 分组Id
        */
        @NotNull(message = "分组Id不能为空",groups = Update.class)
        @Schema(title = "groupId",description = "分组Id")
        private  Long groupId; 
        /**
        * 分组名称
        */
        @NotNull(message = "分组名称不能为空")
        @Size(max = 64,message = "分组名称长度为1到64个字符")
        @Schema(title = "groupName",description = "分组名称")
        private  String groupName; 
        /**
        * 分组编号
        */
        @NotNull(message = "分组编号不能为空")
        @Size(max = 64,message = "分组编号长度为1到64个字符")
        @Schema(title = "groupCode",description = "分组编号")
        private  String groupCode; 
        /**
        * 创建时间
        */
        @Schema(title = "createDate",description = "创建时间")
        private  Date createDate; 
        /**
        * 创建用户
        */
        @Schema(title = "createUser",description = "创建用户")
        private  Long createUser; 
        /**
        * 修改时间
        */
        @Schema(title = "updateDate",description = "修改时间")
        private  Date updateDate; 
        /**
        * 修改用户
        */
        @Schema(title = "updateUser",description = "修改用户")
        private  Long updateUser; 
        /**
        * 是否启用(1、是/2、否)
        */
        @NotNull(message = "是否启用(1、是/2、否)不能为空")
        @Range(message = "是否启用(1、是/2、否)超出范围",min = 1,max = 2)
        @Schema(title = "enabled",description = "是否启用(1、是/2、否)")
        private  Short enabled; 
}